#!/usr/bin/env bash
set -e # 这告诉bash一但有任何一个语句返回非真的值，则退出bash。

PROG_DIR=`dirname $0`
PROG_DIR=`cd "$PROG_DIR" && pwd`

echo "
# export PATH
export PATH="$PROG_DIR:\$PATH"
" >> "$HOME/.bashrc"

source "$HOME/.bashrc"

echo "Installed successfully! Enjoy :)"

